﻿using System.Xml.Serialization;

namespace Batman.CasServer.Models
{
    [XmlRoot(ElementName = "serviceResponse", Namespace = "cas")]
    public class CasFailureResponse
    {
        public ProxyFailure proxyFailure { get; set; }
    }


    [XmlRoot(ElementName = "proxyFailure ", Namespace = "cas")]
    public class ProxyFailure
    {
        [XmlAttribute("code")]
        public string Code { get; set; }

        [XmlText]
        public string Text { get; set; }
    }

    public class CasFailureCode
    {
        public const string INVALID_REQUEST = "INVALID_REQUEST";
    }
}
